//WMPPlusPublic.h
#include "WMPPlusCore.h"
#include "WMPPlusBase.h"

#pragma once

class WMPPlusPublic: public WMPPlusBase {
	int selected;
	bool hookFolder;
	bool resolveFolder;
	bool intitle;

	void SetWMPTitle(LPCTSTR title);
public:
	inline int getSelected() { return this->selected; }
	inline void setSelected(int count) { this->selected = count; }
	inline LPCTSTR getMediaFolder() { return Core->getStrProp(WMPPLUS_PROPERTY_MEDIAFOLDER); }
	inline void setMediaFolder(LPCTSTR str) { Core->setStrProp(WMPPLUS_PROPERTY_MEDIAFOLDER, str); }
	inline LPCTSTR getMediaFolderList() { return Core->getStrProp(WMPPLUS_PROPERTY_MEDIAFOLDERLIST); }
	inline void setMediaFolderList(LPCTSTR str) { Core->setStrProp(WMPPLUS_PROPERTY_MEDIAFOLDERLIST, str); }
	inline bool getInTitleDraw() { return this->intitle; }
	inline void setInTitleDraw(bool value) { this->intitle = value; }
	inline bool getHookFolder() { return this->hookFolder; }
	inline void setHookFolder(bool value) { this->hookFolder = value; }
	inline bool getResolveFolder() { return this->resolveFolder; }
	inline void setResolveFolder(bool value) { this->resolveFolder = value; }

	void Initialize();
	bool ResolveCurrentFolder(HWND, bool, int&, LPCTSTR&);
	void UpdateTitle(LPCTSTR title);
};
